<template>
  <div id="app">
    <transition name="fade" mode="out-in">
      <router-view></router-view>
    </transition>
  </div>
</template>

<style>
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}
</style>

<script>
export default {
  name: 'App'
}
</script>

<style>
* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

/* Element UI 组件样式优化 */
.el-button--primary {
  background-color: #1abc9e;
  border-color: #1abc9e;
}

.el-button--primary:hover {
  background-color: #15a589;
  border-color: #15a589;
}

.el-card {
  border-radius: 8px;
  transition: all 0.3s;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}

.el-card:hover {
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.1);
}

.el-input__inner {
  border-radius: 4px;
}

.el-table {
  border-radius: 8px;
}

.el-pagination {
  margin-top: 20px;
  text-align: center;
}
</style>
